package com.es.demo;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;

import com.es.util.page.PageBean;
import com.es.util.page.PageNavigator;
import com.opensymphony.webwork.interceptor.ServletRequestAware;
import com.opensymphony.xwork.ActionSupport;

@SuppressWarnings("serial")
public class DemoAction extends ActionSupport implements ServletRequestAware{
	HttpServletRequest request;
	 
	   public String execute()throws Exception
	   {
		   DemoBiz biz = new DemoBiz();
		   //String sql,PageNavigator pageNav, ArrayList param
		   PageNavigator pageNav = new PageNavigator();
		   ArrayList param = new ArrayList();
		   PageBean pageBean  = biz.queryPageListDemo(pageNav, param);
		   request.setAttribute("pageBean", "pageBean");
		   return "";
	   }
	
	   public void setServletRequest(HttpServletRequest request) {
		     this.request = request;
		   }
}
